package my.package001

import com.sun.org.apache.xpath.internal.Arg
import fundation.gsonPrintln

/**
 * @author futao
 * Created on 2017/11/16 - 19:32.
 */
class KotlinUser(var name: String, private var age: Int, private var address: String) {

    companion object {
        /**
         * 改变编译之后的名字，在java中需要用新的名字才能调用
         */
        @JvmName("aaaa")
        fun KotlinUser.introduceSelf(argument: String) {
            gsonPrintln("My information is ${this},$argument")
        }

        @JvmStatic
        fun introduceSelfSennior() {
            gsonPrintln("My information is $this")
        }
    }

    override fun toString(): String = "KotlinUser(name='$name', age=$age, address='$address')"
}